package com.boarsoft.boar.server.action;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.boarsoft.bean.ReplyInfo;
import com.boarsoft.boar.server.ServerInstBiz;
import com.boarsoft.common.Authorized;

/**
 * 暂未使用
 * 
 * @author Mac_J
 *
 */
@Component
@RestController
@RequestMapping("/server/inst")
public class ServerInstAction {
	@Autowired
	private ServerInstBiz serverInstBiz;

	/**
	 * 使用默认值批量添加应用与服务器的部署关系 暂未使用
	 * 
	 * @return
	 */
	@RequestMapping("/add.do")
	@Authorized(code = "server.inst.add")
	public ReplyInfo<Object> add(String appIds, String serverId) {
		serverInstBiz.add(appIds.split(","), serverId);
		return ReplyInfo.SUCCESS;
	}
}